package com.craney.aboutFilter
{
	import flash.display.Loader;
	import flash.display.Sprite;
	import flash.filters.BevelFilter;
	import flash.filters.BitmapFilterQuality;
	import flash.filters.BitmapFilterType;
	import flash.net.URLRequest;
	
	public class TestBevelFilter
	{
		private var myLoader:Loader = new Loader();
		
		private var url:URLRequest = new URLRequest("flower.jpg"); 
		
		private var bevel:BevelFilter = new BevelFilter();
		
		public function TestBevelFilter(ps:Sprite)
		{
			myLoader.load(url);
			
			bevel.distance = 5;
			bevel.angle = 45;
//			bevel.highlightColor = 0xffff00;
//			bevel.highlightAlpha = 0.8;
//			bevel.shadowColor = 0x666666;
//			bevel.shadowAlpha = 0.8;
//			bevel.blurX = 255;
//			bevel.blurY = 255;
			bevel.strength = 5
			bevel.quality = BitmapFilterQuality.LOW
			bevel.type = BitmapFilterType.INNER;
//			bevel.knockout = true;
			
			myLoader.filters = [bevel];
						
			ps.addChild(myLoader);
		}

	}
}